import java.util.Scanner;

public class test8 {
    static void main() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字开始的范围");
        int start = sc.nextInt();
        System.out.println("请输入数字结束的范围");
        int end = sc.nextInt();
        int count=0;
        for (int i = start; i <= end; i++) {
            if (i % 3 == 0&& i % 5 == 0) {
                System.out.println(i);
                count++;
            }
        }
        System.out.println(count);

    }
}
